import MetaballMgr from "./MetaballMgr";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Node)
    metaBall: cc.Node = null;

    @property
    text: string = 'hello';

    @property([cc.Node])
    waters:Array<cc.Node>=[]

    start () {
        this.metaBall.getComponent(MetaballMgr).waters=this.waters;

    }

     update (dt) {
        this.metaBall.getComponent(MetaballMgr).draw()

        this.waters[1].y-=0.1
     }
}
